import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from '@/router/index';
import '@/components/vant'
import axios from 'axios'
axios.defaults.baseURL = 'http://121.199.51.160:8080/'
Vue.prototype.$http = axios

Vue.use(ElementUI);
Vue.config.productionTip = false;
Vue.directive('lazy',{
  inserted(el,binding){
    el.src = "http://121.199.51.160:8080" + binding.value
  },
  updated (el,binding) {
    el.src = binding.value
  }
})
new Vue({
  render: h => h(App),
  router
}).$mount('#app')



